Combined stream auxiliary copy system and method

ABSTRACT

A system and method for transferring data in a library storage system. The library storage system comprises a management server including a storage policy. A media agent is connected to the management server. A plurality of storage media and a data source are connected to the media agent. The data source is divided into at least a first and a second portion of data. The portions of data are transferred from the data source to a first and second primary storage medium using a first and a second data stream respectively. The media agent then causes the first and second portion of data to be transferred from the first and second storage medium to a third auxiliary storage medium using a third combined data stream. Auxiliary copying is performed in chunks and multiple streams are copied in parallel.

This Application is a continuation of U.S. application Ser. No.10/663,384, filed Sep. 16, 2003, which claims priority to provisionalapplication No. 60/411,202 filed Sep. 16, 2002. The entirety of each ofthe foregoing applications is hereby incorporated by reference.

RELATED APPLICATIONS

This application is related to the following pending applications, eachof which is hereby incorporated herein by reference in its entirety:

-   -   Application Ser. No. 09/610,738, titled MODULAR BACKUP AND        RETRIEVAL SYSTEM USED IN CONJUNCTION WITH A STORAGE AREA        NETWORK, filed Jul. 6, 2000,    -   Application Ser. No. 09/609,977, titled MODULAR BACKUP AND        RETRIEVAL SYSTEM WITH AN INTEGRATED STORAGE AREA FILING SYSTEM,        filed Jul. 5, 2000,    -   Application Ser. No. 09/354,058, titled HIERARCHICAL BACKUP AND        RETRIEVAL SYSTEM, filed Jul. 15, 1999,    -   Application Ser. No. 09/774,268 titled LOGICAL VIEW AND ACCESS        TO PHYSICAL STORAGE IN MODULAR DATA AND STORAGE MANAGEMENT        SYSTEM, filed, Jan. 30, 2001,    -   Application Ser. No. 09/038,440, titled HIGH-SPEED DATA TRANSFER        MECHANISM, filed Mar. 11, 1998, and    -   Application Ser. No. 10/303,640 titled SELECTIVE DATA        REPLICATION SYSTEM AND METHOD, filed Nov. 25, 2002.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains materialwhich is subject to copyright protection. The copyright owner has noobjection to the facsimile reproduction by anyone of the patent documentor the patent disclosures, as it appears in the Patent and TrademarkOffice patent files or records, but otherwise reserves all copyrightrights whatsoever.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The invention relates to data storage in a computer network and, moreparticularly, to a system and method for optimizing storage operations.

2. Description of Related Art

The GALAXY data storage management system software manufactured byCOMMVAULT SYSTEMS, INC. of Oceanport, N.J., uses storage policies todirect how data is to be stored. Referring to FIG. 1, there is shown alibrary storage system 100 in accordance with the prior art. Storagepolicies 20 in a management server 21 may be used to map copy data froma source 24, through a media agent 26 to a physical media location 28,30, 32, 34, 36, 38 using e.g., tapes, drives, etc., where data is to bestored. Storage policies 20 are generally created at the time ofinstallation of each media library, and/or stand alone drive. Numerousstorage policies may be created and modified to meet storage managementneeds. A storage policy allows the user to define how, where, and theduration for which data should be stored without requiring intimateknowledge or understanding of the underlying storage architecture andtechnology. The management details of the storage operations aretransparent to the user.

Storage policies 20 can be viewed as a logical concept that direct thecreation of one or more copies of stored data with each copy being aself-contained unit of information. Each copy may contain data frommultiple applications and from multiple clients or data sources. Withineach copy are one or more archives, relating to a particularapplication. For example, one archive might contain log files related toa data store and another archive in the same copy might contain the datastore itself.

Storage systems often have various levels of storage. A primary copy ordata set, for example, indicates the default destination of storageoperations for a particular set of data that the storage policy relatesto and is tied to a particular set of drives. These drives are addressedindependently of the library or media agent to which they are attached.In FIG. 1, the primary drives are media 28, 30, 32, 34, 36 and 38.Clearly other forms of storage media could be used such as tapes oroptical media. The primary data set might, for example, contain datathat is frequently accessed for a period of one to two weeks after it isstored. A storage administrator might find storing such data on a set ofdrives with fast access times preferable. On the other hand, such fastdrives are expensive and once the data is no longer accessed asfrequently, the storage administrator might find it desirable to moveand copy this data to an auxiliary or secondary copy data set on a lessexpensive tape library or other device with slower access times. Oncethe data from the primary data set is moved to the auxiliary data set,the data can be pruned from the primary data set freeing up drive spacefor new data. It is thus often desirable to perform an auxiliary storageoperation after a primary data set has been created. In FIG. 1, theauxiliary data set is copied to drives or tapes 40, 42 and 44.

Storage policies generally include a copy name, a data stream, and amedia group. A primary copy name may be established by default whenevera storage policy for a particular client is created and contains thedata directed to the storage policy. A data stream is a channel betweenthe source of the data, such as data streams 50 and 52 in FIG. 1 and thestorage media such as data streams 50 and 52 in FIG. 1. Such a datastream is discussed in HIGH-SPEED DATA TRANSFER MECHANISM, Ser. No.09/038,440 referenced above. To increase the speed of a copy, data to bebacked-up is frequently divided into a plurality of smaller pieces ofdata and these pieces are sent to a plurality of storage media usingtheir own respective data streams. In FIG. 1, data from source 24 isbroken into two portions and sent using streams 50, 52 to media 28, 36.

A client's data is thereby broken down into a plurality of sub-clients.In FIG. 1, media 28, 30, 32 and 34 may comprise a single media group andmedia 36 and 38 a second media group. A media group generally refers toa collection of one or more physical pieces of storage media. Only asingle piece of media within the group is typically active at one timeand data streams are sent to that media until it achieves full capacity.For example, data stream 50 will feed source data to medium 28 until itis full and then feed data to media 30. Multiple copies may be performedusing multiple streams each directed to a respective media group usingmultiple storage policies.

Auxiliary copying, discussed in more detail in commonly ownedapplication Ser. No. 10/303,640, denotes the creation of secondarycopies, such as medium 40 or medium 42, of the primary copy. Sinceauxiliary copying involves multiple storage policies and data streamswhich each point to a particular media group, data is likely scatteredover several pieces of media. Even data related to single stream copyoperations might also be scattered over several media. Auxiliary copyingis generally performed on a stream-by-stream basis and one stream at atime, in an attempt to minimize the number of times the primary mediaare mounted/unmounted. For example, for a copy of 10 pieces of primarymedia where four streams are used, auxiliary copying first entailscopying all archive files of the first stream to a first set ofauxiliary media, then the second stream to a second set of auxiliarymedia, etc. In FIG. 1, an auxiliary copy of stream 50 is made usingauxiliary stream 50 a to medium 40 and, if needed, medium 42.Thereafter, an auxiliary copy of stream 52 is made using auxiliarystream 52 a to medium 44.

An archive file, at least with respect to auxiliary copying, isgenerally copied from a first chunk of data to a last chunk. When anauxiliary copy operation is cancelled or suspended before all chunks ofan archive file are successfully copied to the destination copy, thechunks successfully copied are generally discarded or overwritten laterwhen the archive file is again copied to the same copy or medium. Thisis undesirable because it wastes time and resources to copy the samechunks repeatedly; it wastes media because useless data occupies themedia until the media is reusable; and if the network is not stable, alarge archive file may never be successfully copied.

Although the GALAXY data storage management system software providesnumerous advantages over other data storage management systems, theprocess for restoring copied data may require access to several media,which involves multiple mounting/unmounting of media, thereby increasingthe time necessary for a restoration. Additionally, although an effortis made to minimize the number of times media are mounted and unmounted,the stream-by-stream basis used in auxiliary copying does not minimizethe number of mount/unmount times necessary for the auxiliary copy anddoes not minimize tape usage. For example, in FIG. 1, media 40 and 44may both be less then half full but both are needed to copy data throughstreams 50 a, 52 a using conventional techniques and both must beremounted for a restore. Performing auxiliary copying on astream-by-stream basis is also generally a lengthy process. Finally,restarting a copy of an archive file that has been cancelled orsuspended by always copying the first to the last chunk is inefficientwith respect to media usage and the time necessary to complete a copy.

There is therefore a need in the art for a system and method forincreasing the efficiency of storage management systems.

SUMMARY OF THE INVENTION

A system and method for transferring data in a library storage system.The library storage system comprises a media server including a storagepolicy. A media agent is connected to the media server. A plurality ofstorage media and a data source are connected to the media agent. Themedia agent divides the data source into at least a first and a secondportion of data. The portions of data are transferred from the datasource to a first and second primary storage medium using a first and asecond data stream respectively. The media agent then causes the firstand second portion of data to be transferred from the first and secondstorage medium to a third auxiliary storage medium using a thirdcombined data stream. Auxiliary copying is performed in chunks andmultiple streams are copied in parallel.

One aspect of the invention is a method for transferring data in alibrary storage system. The library storage system comprises amanagement server. A media agent is connected to the management server.A plurality of storage media are connected to the media agent and a datasource is connected to the media agent. The method comprises dividingthe data source into at least a first and a second portion of data. Themethod further comprises transferring the first and second portion ofdata from the data source to a first and second storage medium using afirst and a second data stream respectively. The method still furthercomprises transferring the first and second portion of data from thefirst and second storage medium to a third storage medium using a thirdcombined data stream.

Another aspect of the invention is a system for transferring data. Thesystem comprises a data source, a media agent connected to the datasource and a management server connected to the media agent. The systemfurther comprises at least a first, second, and third storage mediumconnected to the media agent. The data source is divided into at least afirst and a second portion of data. The media agent transfers the firstand the second portion of data from the data source to the first andsecond storage medium using a first and second data stream respectively.The media agent transfers the first and second portion of data from thefirst and second storage medium to the third medium using a thirdcombined data stream.

Still another aspect of the invention is a recording medium in a storagesystem with data stored thereon. The storage system comprises amanagement server, a media agent connected to the management server, aplurality of storage media connected to the media agent, and a datasource connected to the media agent. The data is produced by splittingdata source into at least a first and a second portion; transferring thefirst portion to a first storage medium using a first stream;transferring the second portion to a second storage medium using asecond stream; and transferring the first and second portion of datafrom the first and second storage medium to a third storage medium usinga third data stream.

Yet still another aspect of the invention is a method for transferringdata in a storage system. The storage system comprises a managementserver, a media agent connected to the management server, a plurality ofstorage media connected to the media agent, and a data source connectedto the media agent. The method comprises dividing the data source intoat least a first and a second portion of data. The method furthercomprises transferring the first and second portion of data from thedata source to a first number of pieces of storage media. The methodfurther comprises transferring the first and second portion of data fromthe first number of pieces of storage media to a second number of piecesof storage media, the second number being less than the first number.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the operation of a library storagesystem in accordance with the prior art.

FIG. 2 is a block diagram showing the operation oaf library storagesystem in accordance with the invention.

FIG. 3 is a flow chart detailing some of the operations of an embodimentof the invention.

DETAILED DESCRIPTION OF THE INVENTION

The efficiency of data storage management systems is increased in theinvention by providing a system and method that combines data streams ofone or more storage policies during an auxiliary copying operation.Combining data streams generally denotes copying or backing-up archivefiles associated with different streams, onto a single or a fewer numberof streams, thereby minimizing the number of media required for anauxiliary copy operation and consequently reducing the number ofmount/unmount times necessary.

Combining streams may be enabled by allowing a plurality of applicationsin a source to be copied to point to a single storage policy. Referringto FIG. 2, there is shown a library storage system 200 in accordancewith the invention. Data from a plurality of applications (e.g.EXCHANGE, WORD, EXCEL, etc.) from a source 25 is controlled via mediaagent 27 according to storage characteristics specified by a storagepolicy 19 in a management server 23. The data are each copied to arespective medium, such as a hard drive, tape, etc. through streams 54,56, 58. For example, for a primary copy or storage of threeapplications, the data from each of the applications will be saved totapes 58, 60, 62, 64, 66 and 68, respectively, through streams 54,56,and 58 respectively, thereby requiring at least three tapes for the copyoperation, i.e., tapes 58, 62, and 66. During the auxiliary copyoperation which combines streams, the data on tapes 58, 62 and 66 arecombined into fewer media—i.e., tape 70 and, only if needed, tape 72.This may be accomplished, for example, by a storage policy pointing toeither the same or another media library for storing the auxiliarycopies. Thus, the primary copy operation requires three tapes, but theauxiliary copy is reduced to one tape, assuming the capacity of one tapeis sufficient to hold the data from the three applications.

The archive files may be given an application identification, e.g.,appId (sub-client), and the files are copied by default in ascendingorder according to the appId in order to minimize the impact on restorespeeds. Alternately, combining streams can be done stream-by-stream forthe fastest copying times as discussed below.

In addition to combining data streams, data is copied to the auxiliarymedia 70, 72 in a logical order, such as in the order of the primarycopy according to the date the primary archive files were create. Inthis way, the archive files of a copy may be copied together in a singlemedium, allowing users to more easily determine which medium contains aparticular copy.

Combining streams helps in media recycling. For instance, assume thatthere are several primary copies on four media that correspond to fourstreams and archive pruning has pruned all but one copy. The remainingcopy may still hold up the four media. If the primary copy is copied,job-by-job, into one stream to an auxiliary copy, the primary copy willbe copied onto one medium and the other three primary media are thenrecyclable.

The option of combining data streams may be selected or specified as anoptional copy method at the time a particular storage policy is createdor defined. The combined data stream copy method may be applied toeither synchronous data replication or selective data replication.Primary copies requiring multiple streams will generally not be copiedto a medium with copies using combined streams. A copy made pursuant toa storage policy that combines streams generally cannot be changed intoa copy that doesn't combine streams and vice versa.

A storage policy that combines streams includes a property, which may beselected or defined, that may be used for specifying the order for whichdata will be copied to media, e.g., a copy order. By default the copyorder is in the order of application and job (explained below). Thisenhances efficiency with respect to restoring data from the copy.Alternately, the user may specify that the data be copied in the orderof the stream number which is more efficient but yields a high penaltyfor restores.

The “order of application and job” technique works as follows. All copyjobs within a given instance/copySet are copied together, e.g., all jobsselected for each client, appType, and instance/copySet. The jobs, e.g.,the archive files, are then copied in the ascending order of theirarchive file Identification (“Ids”). Once a job copy is started, all thejob's archive files are copied together, even if those numbers arehigher than other archive file Ids.

For example, if a copy set has two sub-clients with following archivefiles: (1) Sub-client 1: Job 1, archive file 1 (“AFI”) created 2:00 pm,(2) Sub-client 2: Job 2, archive file 2 (“AF2”) created 3:00 pm, (3)Sub-client 1: Job 1, archive file 3 (“AF3”) created 4:00 pm (resumed andfinished or a multi-archive file job like exchange database), and (4)Sub-client 1: Job 3, archive file 4 (“AF4”) created 5:00 pm. The copyorder is AF1, AF3 (to finish Archive files of the job being copied),AF2, and AF4.

When a property or feature of the primary copy is changed or modified,the copy order of each auxiliary copy that combines streams may also bechanged. For example, if the primary copy was copied on a non-magneticmedium and now will be copied on a magnetic medium, the copy order willautomatically be set to in order of application and job for allsecondary copies. Otherwise, there will be generally no change in thecopy order for the secondary copies. After the primary copy has beenchanged, the former primary copy by default will not combine datastreams.

During the creation of a storage policy for a nonmagnetic media group ordrive, the graphic user interface (“GUI”) includes a form element, e.g.,check box, that allows the user to select the combine data streamoption. The option is preferably checked OFF by default. Users canselect the option by selecting or turning the feature ON in the CopyPolicy interface screen in order to enable the combine data streamoption.

If the combine data stream option is selected, the copy order propertywill be enabled which allows the user to select from one of two choices:in order of stream number and in order of application and job. For astorage policy or policies for auxiliary copies whose primary copy issaved or to be saved on magnetic media or drives, where the combine datastream option is selected, the copy order is preferably in order ofapplication and job by default. Otherwise, the default copy order is inorder of application and job. The copy order can be changed from one tothe other at any time.

The GUI may display a message, such as a popup message, in the followingsituations:

-   -   Where the primary copy is stored or to be stored on non-magnetic        media or drives, if the user selects the combine data stream        option or changes the copy order, the GUI warns the user about a        higher amount of mount/unmount and tape seek activity during        restores that will occur if the combine stream option is in        order of stream number or during auxiliary copies if the option        is in order of application and job.    -   If the user tries to point a SQL or DB2 sub-client to a storage        policy that has a copy with the combine data stream option        selected, the GUI warns the user that the multi-stream SQL or        DB2 copies will not be copied using combined streams.    -   If a storage policy is pointed to by a SQL or DB2 sub-client and        the user tries to create a new copy with the combine data stream        option selected or tries to select the combine data stream        option for an existing copy, the GUI warns the user that the        multi-stream SQL or DB2 copies will not be copied to an existing        copy using combined streams.

An archive manager is a computer program or instruction that managesarchive operations, such as creating and updating a storage policy, andretrieving data related to a storage policy. The archive manager may beimplemented as an application or module and resides on a referencestorage manager or media agent. An archive manager is preferablyembodied in an ArchiveManagerCS class that is implemented as anApplication Program Interface (API). The class further interfaces withat least one database or table which preferably includes the details ofstorage policies, such as the copy name, data stream, media group,combine data stream properties, etc. The database or table includesvalues such as streamNum and flags, which indicate the selection of thecombine data stream option. Additionally, the database or table may beaccessed by other object classes, which may use the relevant datacontained therein.

The stream number of an archive file copy is passed to a createCopy( )method included in CV Archive. Additionally, an AuxCopyMgr process sendsthe stream number of an archive file copy to a remote auxCopy process ina CVA_COPYAFILE_REQ message.

All copies associated with a storage policy have the same number ofstreams, e.g., the maximum number of streams, of the storage policy.This does not mean that a library for each copy has to have the samenumber of drives. A primary copy needs enough drives to supportmulti-stream copy. An auxiliary copy that combines data streams actuallyneeds only one drive for auxiliary copying and for data restoration.Consequently, the associated library can be a stand-alone drive. Inorder to take advantage of stream consolidation, users that select thecombine stream option are allowed to create a storage policy pointing toa storage library with fewer auxiliary drives than copies.

Backup and synthetic full backups are allowed, which include a backupprocess writing the streamNum related to a storage policy into thearchFileCopy table rather than archFile table when each archive file iscreated. The archive manager preferably handles this process.

A file system-like restore (involving indexing) includes one or moresub-clients. The sub-client restorations, may be performed serially, oneat a time, in an arbitrary order or based on archive file location. Forexample, for each sub-client restore, archive files may be restoredchronologically, such as in the order that the files were created.Alternatively or in addition, files may be restored, according to theiroffsets, such as restoring in order of offsets ascending within eacharchive file. Offset refers to the distance from a starting point, e.g.,the start of a file. Movement within an archive file typicallycorresponds with higher physical offsets from the beginning of thearchive file.

The archive files in a secondary or auxiliary copy that are created bycombining data streams are by default ordered as required forrestoration. Restore efficiency could therefore be better with theauxiliary copy than with the primary copy. With respect to combiningdata stream-by-stream, the order of the archive files on media holdingan auxiliary copy, may not agree with the order the primary copies werecreated, which may require backwards tape movement during the restore.Backwards tape movement, the need to rewind, may be correctly handled byprogramming, such as by DATAMOVER software by GALAXY, during datarestoration. Backward movement, however, has a negative impact onperformance. A multi-stream ORACLE or INFORMIX copy can be restored froma single stream. However, backwards tape movement during the restore mayoccur.

It is preferred that a copy involving multiple streams will not becopied to a copy medium that combines streams. Single stream copies maybe copied to a copy medium that combines streams.

Referring to FIG. 3, there is shown a summary of the operations of theinvention with respect to combining streams. At step S102, the storagepolicy is queried or the user is asked whether the combine streamsoption should be enabled in his copy. If the user answers no or thestorage policy indicates no, control branches to step S112 and copyingis performed as in the prior art. Otherwise, control branches to stepS106, and the system determines whether the streams can be combined. Forexample, auxiliary copy of SQL data should be the same number of streamsas the primary copy. If the streams cannot be combined, control branchesto step S104, the user is informed that the streams cannot be combined,and copying is performed as in the prior art in step S112.

If the streams can be combined, control branches to step S108 and thedata is backed up to the primary storage media using a desired number ofstreams. Thereafter, control branches to step S110 where the auxiliarycopy is performed combining data streams.

Copy Restartable at Chunk

As stated above, in prior art auxiliary copying systems, auxiliary filecopying restarts from a first chunk if the auxiliary copying wasinterrupted. This means if the copying operation is stopped in themiddle, all copied chunks need to be copied again.

In the invention, auxiliary copying is performed such that data chunksof an archive file that have been successfully copied to a copy mediumare not discarded and the copy operation resumes copying where theprevious copying left off; auxiliary copy operations are restartable bya chunk, as opposed to restartable at archive file. Copying that isrestartable at a chunk may be achieved with an API which calls a classthat includes methods that do not delete the copied chunks. For example,the createArchFileCopy( ) method in the ArchiveManagerCS class mayinclude an instruction so that the successfully copied chunks are notdeleted. A method may further be included to retrieve the last chunkcopied for each archive file to be copied, such as agetToBeCopiedAfilesByCopy( ) method in the ArchiveManagerCS class.Additionally, new fields may be added into the CVA_COPYAFILE_REQ, suchas messagearchFileSeqNum, startChunkNum, startLogicalOffset andstartPhysicalOffset fields.

The process for restarting a copy at chunks includes the AuxCopyMgrprocess checking if the archive file to be copied has chunks that weresuccessfully copied to the copy media. If chunks have been copiedsuccessfully, the AuxCopyMgr process retrieves variables archFileSeqNum,startChunkNum, startLogicalOffset and startPhysicalOffset for thearchive file and sends them to the AuxCopyprocess in theCVA_COPYAFILE_REQ message. For each stream of the destination copy, theAuxCopyMgr process starts copying from the archive file that has chunksthat were successfully copied. The AuxCopy process calls CVArchive::createCopy( ) using the parameters archFileSeqNum,startChunkNum, startLogicalOffset and startPhysicalOffset. This allowsAuxCopy to start writing or copying from the correct chunk and offset.The AuxCopy process may also call DataMover::Seek( ) withstartPhysicalOffset as one of the input parameters to find the startingchunk and offset before the first DataMover::Read( ) call.

Additionally, the CV Archive::createCopy( ) API, which is used byAuxCopy, includes input parameters archFileSeqNum, startChunkNum,startLogicalOffset and startPhysicalOffset. When startChunkNum>1, theAPI does not send a CVA_CREATEAFILECOPY_REQ message to commServer forcreating an archFilecopy entry since there is one already. The API alsouses the parameters passed in to it to call Pipelayer::create( ).

Multi-Stream Auxiliary Copy

In another aspect of the invention, methods and systems are providedwhich allow multi-stream auxiliary copying. In the prior art, auxiliarycopying is performed one stream at a time no matter how many streams areused during a copy. The amount of time for copying a copy job istherefore proportional to the number of streams used during a copy. Thisis referred to as single-stream Auxiliary Copying.

In the invention, multi-stream Auxiliary Copying refers to performingauxiliary copies for a plurality of streams in parallel. This may beaccomplished by providing a sufficient number of drives so that eachstream may copy to at least one drive, thereby reducing the timenecessary for auxiliary copies involving multiple streams. For example,in an instance where two drives are required for each stream (e.g., onesource and one destination), the number of streams that can be copied atthe same time is half of the number of available drives. If six streamswere used for copy jobs, an auxiliary copy job can copy archive filesfor three streams at a time if there are six drives available, and cancopy archive files for six streams at a time if there are twelve drivesavailable, etc.

The process for multi-stream auxiliary copying includes the AuxCopyMgrprocess reserving more than one stream for the same destination copy orfor multiple destination copies at same time. One stream is assigned toone destination copy at a time. If the AuxCopyMgr process has notreserved enough streams, the process will keep trying if some streamsare temporarily not available. When a copy is done with a stream for adestination copy, the AuxCopyMgr first releases the stream then tries toreserve the next stream (the copy can be different). The AuxCopy processis able to run more than one worker thread that copies an archive filefor a stream and each thread uses its own pipeline. When an AuxiliaryCopy job is interrupted, stopped, or cancelled, the AuxCopy processstops all the worker threads and exits, and the AuxCopyMgr processreleases all the streams and exits. If an AuxCopy process fails to copyfor one stream, the worker thread reports the failure to AuxCopyMgrprocess and exits. The AuxCopy process continues to run until no workthread is running or is stopped by AuxCopyMgr. Depending on the natureof the failure, the AuxCopyMgr process decides whether it is necessaryto stop copying archive files for all streams of a copy or stop copyingarchive files for all copies.

Thus, by combining streams in auxiliary copying, auxiliary copyoperations are optimized. By allowing auxiliary copies to be performedby chunk, auxiliary copying may be performed more efficiently even ifthe copying is interrupted. By allowing for multiple stream auxiliarycopies, auxiliary copying may be performed even more quickly than thatavailable in the prior art.

Although the invention has been described in connection with the GALAXYdata management system by way of example, it is understood that thedisclosure may be applied to other data management systems, andreferences to the GALAXY system should therefore not be viewed aslimitations.

While the invention has been described and illustrated in connectionwith preferred embodiments, many variations and modifications as will beevident to those skilled in this art may be made without departing fromthe spirit and scope of the invention, and the invention is thus not tobe limited to the precise details of methodology or construction setforth above as such variations and modification are intended to beincluded within the scope of the invention.

What is claimed is:
 1. A system for transferring data in a multi-tieredstorage system, the system comprising: a data source comprising primarydata stored in at least a first storage device, wherein the primary datain the first storage device is divided into at least a first portion ofdata associated with a first application having a first file type, andat least a second portion associated with a second application having asecond file type; a media agent comprising computer hardware, the mediaagent configured to communicate with the data source; the media agent isfurther configured to: transfer the first portion of data in the firststorage device to a second storage device with a first data stream andtransfer the second portion of data in the first storage device to athird storage device with a second data stream respectively to create afirst backup copy of the primary data stored in the first storagedevice; identify the first and second file types associated with thefirst and second portions of data in the first backup copy; determinebased at least upon the first and second file types if the first portionof data and the second portion of data in the first backup copy can becombined; if the first portion of data and the second portion of datacan be combined, the media agent is configured to create a second backupcopy of the first and second portions of data that is ordered forsubsequent restoration wherein the media agent performs the secondbackup copy at least in part by being configured to: order the first andsecond portions of data existing in the first backup copy based at leastin part on the order of the first and second applications, and createthe second backup copy by storing the ordered first and second portionsof data on a fourth storage device in the combined format, wherein thefirst portion of data is restored to the data source by retrieving thefirst portion of data from the combined format of the second backupcopy.
 2. The system as recited in claim 1, wherein the order the firstand second portions of data in the second backup copy is further basedon job order.
 3. The system as recited in claim 1, wherein the order thefirst and second portions of data in the second backup copy is furtherbased on an archive order.
 4. The system as recited in claim 1, whereinthe order of the first and second portions of data in the second backupcopy is further based on respective stream numbers of the first andsecond streams.
 5. A computer-implemented method for transferring datain a storage system, the method comprising: as implemented by one ormore hardware processors, dividing with a media agent comprisingcomputer hardware a data source comprising primary data stored in atleast a first storage device, into at least a first portion of dataassociated with a first application having a first file type, and atleast a second portion associated with a second application haying asecond file type; creating a first backup copy of the primary data bytransferring with the media agent the first portion of data to a secondstorage device, and by transferring the second portion of data to athird storage device; identify the first and second file typesassociated with the first and second portions of data in the firstbackup copy; determining if the first portion of data and the secondportion of data are combinable based upon the first and second filestypes contained in the first and second portions of data; and creatingwith the media agent, a second backup copy of the first and secondportions of data that is ordered for subsequent restoration whereincreating the second backup copy comprises: ordering the first and secondportions of data existing in the first backup copy based at least inpart on the order of the first and second applications, and creating thesecond backup copy by storing the ordered first and second portions ofdata on a third storage device in the combined format, restoring thefirst portion of data by causing retrieval of the first portion of datafrom the combined format of the second backup copy.
 6. Thecomputer-implemented method of claim 5, additionally comprisingproviding a user notification if the first portion of data and thesecond portion of data cannot be combined.
 7. The computer-implementedmethod of claim 5, wherein the order the first and second portions ofdata in the second backup copy is further based on job order.
 8. Thecomputer-implemented method of claim 5, further comprising accessing astorage policy to determine if the first portion of data and the secondportion of data are combinable.
 9. The computer-implemented method ofclaim 5, wherein the second and third storage devices have a fasteraccess time than the fourth storage device.
 10. The computer-implementedmethod of claim 5, wherein the order the first and second portions ofdata in the second backup copy is further based on an archive order. 11.The computer-implemented method of claim 5, wherein said determiningcomprises determining that the first portion of data and the secondportion of data are not combinable if one or more of the first portionof data and the second portion of data include SQL data or DB2 data. 12.The system of claim 1, wherein a user is provided notification if thefirst portion of data and the second portion of data cannot be combined.13. The system of claim 1, further comprising a management server whichis in communication with the media agent and stores a storage policy,wherein the media agent is further configured to access the storagepolicy to determine if the first portion of data and the second portionof data are combinable.
 14. The system of claim 1, wherein the secondand third storage devices have faster access times than the fourthstorage device.
 15. The system of claim 1, further comprising an archivemodule configured to store at least one storage policy, wherein themedia agent is further configured to access the storage policy todetermine if the first portion of data and the second portion of dataare combinable, wherein the additional copies comprise one or morearchive files.
 16. The system of claim 1, wherein the media agent isconfigured to determine that the first portion of data and the secondportion of data are not combinable if one or more of the first portionof data and the second portion of data include SQL data or DB2 data.